<template>
  <div class="box">
    <!-- 顶部 -->
    <div class="top">
      <div class="left">
        <li>公司</li>
        <li>求职攻略</li>
      </div>
      <div class="search">
        <input type="text" placeholder="搜索公司或职位" />
      </div>
    </div>
    <!-- 内容 -->
    <div class="companylist">
      <!-- <div class="item">
        <div class="name">网易游戏</div>
        <div class="city">广州</div>
        <div class="introduce">
          <ul>
            <li>已上市</li>
            <li>10000人以上</li>
            <li>游戏</li>
          </ul>
        </div>
        <div class="jobmsg">热招：动画设计实习生等986个职位</div>
      </div>-->
      <div class="item" v-for="item in companylist" v-bind:key="item.id">
        <div class="name">{{item.name}}</div>
        <div class="city">{{item.city}}</div>
        <div class="introduce">
          <ul>
            <li>{{item.list}}</li>
            <li>{{item.scale}}</li>
            <li>{{item.type}}</li>
          </ul>
        </div>
        <div class="jobmsg">{{item.jobmsg}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      companylist: [
        {
          name: "网易游戏",
          city: "广州",
          list: "已上市",
          scale: "10000人以上",
          type: "游戏",
          jobmsg: "热招：动画设计实习生等596个职位"
        },
        {
          name: "阿里巴巴",
          city: "杭州",
          list: "已上市",
          scale: "10000人以上",
          type: "互联网",
          jobmsg: "热招：前后端实习生等816个职位"
        },
        {
          name: "腾讯",
          city: "深圳",
          list: "已上市",
          scale: "10000人以上",
          type: "互联网",
          jobmsg: "热招：游戏设计实习生等725个职位"
        },
        {
          name: "网易游戏",
          city: "广州",
          list: "已上市",
          scale: "10000人以上",
          type: "游戏",
          jobmsg: "热招：动画设计实习生等596个职位"
        },
        {
          name: "阿里巴巴",
          city: "杭州",
          list: "已上市",
          scale: "10000人以上",
          type: "互联网",
          jobmsg: "热招：前后端实习生等816个职位"
        },
        {
          name: "腾讯",
          city: "深圳",
          list: "已上市",
          scale: "10000人以上",
          type: "互联网",
          jobmsg: "热招：游戏设计实习生等725个职位"
        }
      ]
    };
  }
};
</script>

<style lang="scss" scoped>
ul,
li {
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
  float: left;
}
.box {
  position: relative;
  width: 100vw;
  height: 90vh;
  .top {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 10vh;
    background: #00d7c6;
    z-index: 10;
    .left {
      position: absolute;
      left: 0;
      width: 50vw;
      height: 10vh;
      li {
        width: 20vw;
        height: 10vh;
        color: white;
        font-size: 20px;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        justify-content: center;
      }
    }
    .search {
      position: absolute;
      top: 50%;
      margin-top: -13px;
      right: 0px;
      width: 50vw;
      height: 10vh;
    }
  }
  .companylist {
    position: relative;
    top: 10vh;
    width: 100vw;
    background: #eeeeee;
    overflow: hidden;
    .item {
      position: relative;
      width: 100vw;
      height: 25vh;
      margin-bottom: 5px;
      background: #ffffff;

      .name {
        position: absolute;
        top: 5%;
        left: 5%;
        font-size: 20px;
        font-weight: 600;
      }
      .city {
        position: absolute;
        top: 25%;
        left: 5%;
      }
      .introduce {
        position: absolute;
        top: 45%;
        left: 5%;
        ul {
          display: flex;
          -webkit-justify-content: space-around;
          justify-content: space-around;

          li {
            // background: red
            margin-right: 5px;
            padding: 5px;
            background: #eeeeee;
          }
        }
      }
      .jobmsg {
        position: absolute;
        bottom: 5%;
        left: 5%;
      }
    }
  }
}
</style>
